package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.dao.OrderSettingDao;
import com.itheima.service.OrderSettingService;
import com.itheima.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;
import java.util.Calendar;

public class ClearOrderSetting {


    @Reference
    OrderSettingService orderSettingService;



    public void clearOrders() throws Exception {

        //String date = DateUtils.parseDate2String(Calendar.getInstance().getTime(), "yyyy-MM-dd");

        orderSettingService.clearOrders();

    }

}
